package com.example.spring.demo.mapper;

import com.example.spring.demo.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author qwert
 * @version 1.0.0
 * @create 2024/12/24 21:11
 **/
@Mapper
public interface UserMapper {

    @Select("""
select * from user where id = #{id};
""")
    User getUserById(int id);
}
